//
//  RecordHelper.h
//  cookBook
//
//  Created by xalo on 16/1/23.
//  Copyright © 2016年 张广斌. All rights reserved.
//

#import <Foundation/Foundation.h>
@class Model;
@interface RecordHelper : NSObject

+ (RecordHelper *)sharedManager;

//按model插入数据
- (BOOL)insertToSqlitWithModel:(Model *)model ID:(NSString *)ID;

//删除全部
- (BOOL)deleteAll;

//根据ID删除
- (BOOL)deleteWithID:(NSString *)ID;

//查找全部
- (NSArray *)selectAll;

//按ID查找是否存在
- (Model *)selectWithID:(NSString *)ID;

@end
